About Ruby Write CGI And RMagick

Hello…
My english is very poor…
But i hope you could read my mean …

First, I want to use a ruby to write a simple CGI program…
but, i use a RMagick to create a image for “Image Verification” …

um…i can use a callimage.rb show the image code…
but i don’t know how to display image type …

please see the Attach File…
please help me … thanks a lot …

Attach File : http://zeuik.com/cimage.zip