Modified Function To Generate Lines But Plotting Over Original Image Is Still In Progress