fix photo cannot be blank on firefox