Converting JPG to correct bitmap

No longer crashes, but now the camera doesn't seem to be working
properly