fixed top-pixel-row masking in vision, and assorted mistakes