Add geometry_display_expression parameter

It can be used to run arbitrary functions to preprocess the geometry
to be rendered based on pixel resolution and/or bounding box.

Includes testcase