Added support to save images on disk