resized an image to make it fit