restructure image directories