refactor uploader to base imageUploader class