Change: Define maximum input image dimensions and size when generating previews

This is a general hardening change to limit processing time and resources of the thumbnailer.

https://github.com/owncloud/ocis/pull/9360
https://github.com/owncloud/ocis/pull/9035
https://github.com/owncloud/ocis/pull/9069
