Currect bug in camera config. Correct formula for getRect.