Resize the screenshot image.