add image optimization capability