An information-theoretic approach to interactions in images