clean up image URLs