Those Imacs need a firmware upgrade in order to display Mac Os X, not doing so will probably result in a black screen.
The upgrade should be done from Mac Os 9.1 or above (Not X)
If your Imac is supplied with a Vga output, try to connect the Imac to an external screen.
Those Imacs will only accept X on the very first 8 Go.