Fix strange code (mine).
Fix unnecessary changes are being made to objects.
Initial support for pasting images.
Make file added to recent on file saving. Also fix some bugs in this code.