Reduced the size of an image