Convert gif retrieval to class hash.