img-impl

Optimize