Factorize the creation an iipimage map