NEW YORK - Annie Leibovitz, the photographer who mismanaged her fortune so badly that she faced losing legal rights to some of pop culture’s most enduring images, has reached a long-term agreement with a private investment firm to help manage her debt and market her vast portfolio, both sides said yesterday.