How the iMac was Apple's financial lifeline