api & guide: cleaning up images