Fix for safari picture uploads