jpeg files only.
Use an in-memory cache instead of filling a folder with temporary files.