write exr using OpenEXR libraries