Collapse RUN statements to reduce image count