Create image directories if they do not exist