Shorten canvaspaint implementation

Thanks to code review by @raimohanska.
Remove duplicated word