My old gallery scripts