add graphic output

add graphic output