You would need:
- HTML
- CSS
- A server-side framework (e.g., PHP, Ruby on Rails, etc.)
- Most likely Javascript (but you might be able to get by without it)
- A database backend, such as PostgreSQL or MongoDB
You wouldn't need individual HTML sites. When someone goes to http://www.yoursite.com/image/1, the backend (usually .htaccess in Apache) will process it and turn it into /image.php?id=1, which PHP (or another framework) then uses to create an image-specific HTML page.
Good luck!
-totallyuneekname