Add a way to autoapply a preset based on picture format.

It is now possible to apply a preset based on the picture format. We
have three categories: LDR, RAW and HDR.

For #9540.