Separate the directory entry reading and drawing.