ignored jpg and png files, rest of teh code included