fix rectangular position when painting on mouse move
build