Images updated through an API call remain stored to disk

Letting the disk run full (e.g. while syncing with AURA Sync) eventually leads to server errors. The old image should get deleted with an update.