Added writeToFile and ImageDownloadable