Added support for img.overlay scaling.