Image uploading with url and by passing data directly to api