Change prototype of ui_on_press
Optimize updating of canvas' tile
Clean memory usage.
new brush algorithm.