learning the class specific parts generatively