Fix issues with photo upload in wps