Added functionality for uploading image by url.