dding file upload for images to account area and refactor some classes