Use records instead of positional pattern matching to fix haddock compatibility
Ignore docs for pictures (fixes build with haddock 2.14)