checks that an image descriptor is suitable for PIO input. If the descriptor is
IM_OPENOUT and the descriptor has been written to, it is automatically
`rewound,' that is, it is closed and reopened as an IM_MMAPIN descriptor.
im_poutcheck(3) checks that a descriptor is suitable for PIO output.