coding #3 adding the class implementation
coding #3 adding Image attribute to the main window