fix: don't flatten sprites more than once.