ENH: Limit number of threads used when computing average image with ANTS (4.1)