add image optimization as default when generate is run