Fixed file path when updating user profile image

Hi, 

I had one problem with updating file for user image profile, it could not save the file in the permanent directory.

Fixed that, please accept my fix.