Ensure directory is created before generating an image.
Ensure directory is created before generating an image.

This is necessary when the original image is in a different location
wanelo/image-server,image-server/image-server,image-server/image-server,wanelo/image-server,image-server/image-server