Support for gif images in preview