fixing bug in user photos