Added gif pre-fetching for speed