clean up image plugin