Joint Estimation of Image Representations and their Lie Invariants