texture: fix some regressions caused by removing the Image base class.