Compute watermark scale based on larger side of image.

This is to have the same watermark size for landscape and portrait
picures. This way it is possible to export a set of picures with
a style having a watermark and keep a constant size for the watermark.