The w3-border class adds borders around the image.
Tip: Use any of the w3-padding classes if you want padding inside the borders:
Less padding: