Added drawFilledRectangle method to canvas.