Resizing image to a smaller size.