Fixed some bugs with image processing, can now save virtual images --
next step is to write the code to do so, also moved around some classes
and fixed some missing code