Simple PHP gallery generator