cleanup image plugin