fix for image capture by camera.