better im_openout() compat