fixed bug where skip flag was always true. Added option for PNGs to speed up the process.