Implemented `setReadOnly` method.

Calling `setReadOnly` with `true` parameter will make the canvas not editable. To return the canvas the drawing state `setReadOnly` should be called again with `false` parameter.