giflib >5 fix in canvas