Tried to increase performance of cursor drawing