Reduce image size and clean-up scripts in base template.