gif endpoint doesn't seem to be working but put the function back in