random added, added jpeg and uppercased extenstions