Fixing code so that it properly recognizes and commits image files stored in resources folder. Additionally added *.class to .gitignore so that compiles classes are not in the repository