Create image files in a series of sub-directories to prevent filesystem IO from clogging up. #885