Added gif support to image plugin