working code in vips