updating how images are optimized in the build script. Closed #153