did some more work at the Image class to prepare for task 3