image uploader for local files or urls