Remove unused import.
Add a keep_until field (which is a date+time) to the image record; if null, keep forever, else delete when now >= keep_until.