workaround for keeping animation on gif images