renamed gifs to png so changed the extension in the function name