drawCore library for painting in canvas