create canvas context
restruct