fix HeadlessView::readPixels return value, ref #480