added sub-texture stuff