refactor to work with new imageio-ext refactor