How can I draw an image with rounded corners and a border, but not letting the image cross the bounds of the border?
The image is always changing, so the size and the proportion is also changing periodically.
I found this
you could extend it further to draw a border as well
Retrieving data ...