Add possibility to keep picture dir structure

Add the possibility to keep the picture directory structure with the parameter THUMBNAIL_KEEP_DIR_STRUCT. The previous behavior is the same if the parameter is not precised