only creating images dir if there are images