fix graphviz imagetype bug