Added debug log methods
Refined the format of debug log
Finished basic painting logic in canvas2D