Add a config for configurable image scaling.

https://dev.plone.org/ticket/13337