Added support for new optional options boolean argument "idAsDirectory". This will allow you to store files into a sub-directory based on the image id instead of having everything in a single structure.