Adds option to only include sections that have no more than max_target_images as suggested in T324321.
max_target_images
cc @cparle @dsaez