remove dead code, and image files