Added the option to exclude extensions. Currently no compiling to png