added  ajax call to get photoid from publicpic