install im/gm before vips