Fixed app from crashing when opening gallery but..

the image isn't displayed on the screen. The original image view does
disappear though.