* Don't fail if stream is not bytes * move logger * Refactor InputFile.is_image * Use f-strings * some clean up