fixed rotateCamera for older devices