Optimize code image.