added code to allow upload of avatar/image by user