Drawing with linecapmode( round ) on image? - [SOLVED]

EDIT Sorry for wasting your time, turns out I wasn’t using a big enough strokewidth. Please ignore the question below.

Is it possible to draw a rounded line ( with linecapmode(round) ) on an image?

I might be doing something wrong, but I think it doesn’t work because smooth() might be disabled when the context is set to an image?