added ability to upload images by url