After the leak of private video footage upended his life, the rapper took a more open approach to making music. It resulted in the best album of his career.