make sure not only editing images updates urls but also RESTORING to original.

Editing images works fine with what was in development branch.  However I consistently was NOT able to restore to original image.  This pull request fixes that.

#142