Migrating the appended pixels function