modified stream image parsing to make smaller random filenames