Set image to null when opening gallery to prevent exception upon return