implements open, save, insert image actions and code cleanup
Merge remote-tracking branch 'upstream/master'

Conflicts:
	mainwindow.cpp
	mainwindow.h