Fourth Commit. Cleaned up the code some more and added a dialog window that allows the user to save image.
Merge remote-tracking branch 'origin/master'