fix photos path, optimization some image optimization