modified photo upload mechanism and photo add in resource in progress