Handle not wrapped images.

I not found any approach to make gallery from simple images, which aren't wrapped into links. It can be useful, when there is no possibility to modify an existing html - e.g, for a gallery from images out of user input.