Change the code to accept URL img