added image sort script and linted some more