resize image, optimize with gifsicle