Fix canvas drawing lag