moving files and optimizing the png scanner