bin and build diectories for image stack