Added support for pages option for image extractor.