support to disable ImageMagick and OpenEXR at compile time