Add png generation in graphic.