fixed calculation of scale_x / scale_y for depth images.

The aspect ratio was not considered. Also the calculation was
broken as sin instead of tan was used.