Tested and corrected Image class.