added filtering by num_images