helper to get path to photos in public directory
fixed conflicts