some clean up to reduce image size