Doing a recovery without the main display
I have an iMac and it's main monitor is not working. I have attached and external monitor and it used to work fine and I could mirror image by pressing Command-F1. Now, the computer is crashed somehow and I want to restore the computer to it's original settings(reinstall the operating system). I tried to go to recovery mode by pressing keys Command-R and it displays a grey screen on the external display but nothing happens after that. How can I go about this and get my external display to show everything so I can go to recovery mode and do the reinstallation?
iMac, Mac OS X (10.7)