Fix bug in image parser for carousel.