RAZ-2454: Animated GIF don't show a proper preview anymore
- Fixed so that proper pathname is passed to isanimatedgif function
- Fixed isanimatedgif function so that it properly reads the result from imagemagick on windows