sorted out image directory