Stain-Invariant Representation for Tissue Classification in Histology Images