Save images to tempdir on new items (no id known yet), and move them to the right place afterwards. Remove images for deleted items.
Working on the design a bit.