Updated imageextractor to get all the images