Rewrote galley media cleanup method