More reliable mouse drawing code. Lower refresh rate.