Observer bug causing crash when selecting image from gallery