Reapplied the tiling-sprite fix.