Set image-ratio if it is 1.