Dynamic PHP gallery system with automatic thumbnail generation.