Fixed a bug when moving images

- Keyframes was added to the wrong image.