updated swi_imageconvertsingle