path normalize & gm replace imageMagic