Need to add scale_img function and the way we are passing images

Need to add scale_img function and the way we are passing images.
Instead of passing the entire image as argument to scale_img function we
can simply the arbitrary points we had calculated earlier.