use $REX['MEDIAPOOL']['IMAGE_TYPES'] & $REX['MEDIAPOOL']['ALLOWED_DOCTYPES']