Photos are displayed in the category corresponding to their file directory.

You can also display a picture in several categories, without duplicating the file on your web server. Associate the photo to any category from the photo editing screen (that any administrator can reach from the photo page on the gallery side).

Virtual categories are based on this concept: they have no corresponding directory. Create virtual categories from Administration » Categories » Manage.