Fix a bug with retrieving images in a tag.