Support preview for gif files