added proper end frame when generating keys for sprites after drag/drop