Make sure image URL has an extension