fix bug where it was impossible to remove an avatar from a user profile other than your own, add test for this condition