added framework for image class (to encapsulate saving/loading images)