img-impl2

Optimize