File object support for imread and imsave