Modeling object appearance using Context-Conditioned Component Analysis