Added scaling section before the detection stage.
For big pictures the detection engine don't work so well.
So Before every detection we rescale the image to a smaller size so
the detection could work.
When the detection is over we scale the results back to the original size
and continue working on the big image
Added the affine transform section to comment.
This section is not needed for the spation algorithm, so for now we ignore it