Bug 963142 - fix negative-rotation math error in takePicture(), r=dhylands