Extract images by file or page