fix draw_cmap_table()
change {w,h} -> {x,y}, fix bug of resize/rotate functions
remove comment