Added public_path to photo update function for live fix.