IO operations outsourced from Images.jl