add HeadlessView::readPixels, fixes #480