Fix wrong background image ratio when setting dimension of View to difference ratio from the image.