When i draw the line its drawn under the image so i can't see the line on the screen.
That is because you are probably not drawing on the correct widget.
Draw on the widget which contains your image.