changed togif checks if animation folder exists