fixed bugs on profile image uploader