added code to draw overlayed image and the resulting vectors onto the result