Add file type validation, refresh profile image after upload, fixes after code review in changepic widget