ref error in im_system_image() wrapper