working on Image and ImageSize class for different image formats.