upload profile photo with resizing