adding some fix when upload photo without photo
adding some cfg to routes
adding some cfg to avatar uploader