taking the extractor as argument in makeimages