use lower values for intermediate width/height
use $REX['IMAGE_EXTENSIONS']  - Redaxo 4.5+