Free the inverse of the photos