I like a 4-pixel black rule around photographs. Unfortunately, I don't always get one.
Here are the settings in the stroke dialog box:
1. Select/highlight the background layer.
2. Press CTRL+A.
3. Go to Edit>Stroke
4. Set width to 4 pixels.
5. Foreground color is black.
6. Location is INSIDE...