Fixed height and width calculation in Camera.