taking and rotating pictures using the camera