A multivariate distribution for sub-images