Image cleanup functionality