fix extraction of image-id

On some version of devstack, plural images are registered.
This patch chooses one image-id from a list of images.