instead of using the Imager type typemap entry use the Imager::ImgRef