automatically generating png from model diagram