ignoring .dot and .png files.