Fix: Undo/Redo with Images Loaded

Now undo and redo work when loading images, either from the camera or
from the sdcard.