Based on what you're saying, Madara awakened his rinnegan just before his death, sent white zetsu to take a picture and then fell into utter despair after reading it then all of a sudden just decided on the eye of the moon plan. Doesn't seem so does it?
EDIT - Madara clearly stated that he fell...