Update CanvasMiniPreview code