added optional upload of profile avatar on register form

fixes #43