Optimize base image