Make your own class or id.
Here is the CSS:
div.picbox {
border: 1px solid #999;
height: 400px;
width: 200px;
padding:5px;
}
Then call it when you put in the image.
<div class="picbox">
<img src="yourimage.jpg" alt="Your Image" />
This is my image.
</div>
You said that you wanted a text box with a thin grey line around it. This code will do that by creating a class.
If you just wanted a thin grey line around all of your images alone, then you could do this in your stylesheet:
img {
border:1px solid #999;
}