Zoom in input image if it's too small (dimensions < 512 pixels)