problem 4 working with images