image optimize support added