It is absolutely NOT possible if your iMac shipped with Mavericks. Although since your OP says "reinstall" I assume it didn't ship. I don't know the exact process but you would have to find a download of ML and put it on a bootable USB drive. I think it'd be just like a clean install of Mavericks, but you would be installing ML. You'll probably want to double check the backup compatibility since you're downgrading also. Use Google and I skimmed this message and maybe it'll help you too.https://discussions.apple.com/message/23542420#23542420