Internal storage support

Saving temporary images to internal storage is added in case there is no external storage on a device