Sets the image resolution.