Remove unnecessary imports and add Debug.Assert's in 'EditProfilePic'