revised gif loading