Set contentScaleFactor according to image's scale.