fixing bugs in preview, trying to do gifsicle and imagemagick if it fails