fixed photos upload