linking diagrams to raw images