s/#generate_diagram/.generate_diagram/
Add tests for Image methods