Image analysis of macromolecular structures