Recursive directory creation for image saver

This lets it emulate `mkdir -p` behaviour. Previously boost fs would throw an exception.