Code
[img]<URL>[/img]
but
Code
[img=<URL>]
works too.
now, if you try using the second version within a spoiler tag, something weird happens:
Code
[spoiler][img=<URL>][/spoiler]
results in a working spoiler tag, that contains the image, but also the closing of the spoiler tag (and the rest of the post too):