change the size of overlay

in order to have same border radius with the image, change the size of
overlay to be the outer size of the image