expose max height parameter as config option