Changed image storage to the tmp directory.