test display function with ratio, not finish
fix drawing function on graphic