Fixed bug with not painting pixel under cursor.