Added gif loading detection code. Ready for effects.