Refactoring: moved classes Quilt* from chcanv to separate file.