Added the feature to attach images to notes.

Added the feature to attach images to notes.  Also added many try catch
blocks, and removed commented out code.