Made image x, y calculation work with scale.