The walk() function does not necessarily return filenames in alphabetical order. This leads to a random cover image. Sorting filenames before setting the cover images fixes this issue.