Temporary fix for crashing when trying to capture still images from front camera.