you need to update the iMac's firmware to the latest version (only possible under OS 9).
10.3 should install just fine then.
I would *strongly* recommend dumping whatever you can scrounge together into the RAM slots - my 400 MHz DV ran 10.4.11 (not officially supported on your machine, but installable with a little trickery) quite admirably for a machine its age.