Interface to PIL, used by ia636 and ia870 toolboxes