A VGA-style pattern generator for images and canvas patterns