When setting the pan-padding around static image layers, scale the dimensions based on the size of the image.