replaced engine.canvas.fillRectangle() with engine.canvas.drawPolygon(), renamed engine.canvas.fillText() to engine.canvas.drawText()