catch except when photo cannot convert image