How can I apply a border to only the images that appear within <p> tags?

I can redefine the image tag to give all images a border, but thats not what I want. I only want those images that appear within a <p> tag to have a border.

Thanks,

Rich