Stretch out an image along a curved line,

I’m trying to make curving lasers, and since I have no idea of how to do this I thought stretching out an image along a line (or a polygon )would be the best approach.
Does anyone know how to do this, or got a better idea?

~Thanks.