Get rid of 3d and rectangular texture support
More image cleanups