resolved the user id issue at the time of image upload