#608: Imagemin ruins '.gif' images on minification

Resolves #608.