Set environment variable for image_optim gem

LGTMs by:
* Michael