Added capability to save temp image files.