added option to add a leading folder to the image galleries