save profile image to local dir