Added buffer for painting
Merge pull request #1 from levshits/bufferedVersion

Added buffer for painting