temp fix for photo upload