diagrams and image makefile