photo upload fix for windows machines