fix photo upload in chrome