Improved readability and functionality
1. Improved the event handling mechanism
1.1. Added two delegate functions to the ImageClass with which we can add methods to be executed after the image is opened and closed
2. Added the option to open the image in a window when DOING a test