Added gallery export
Small optimization