bitmap export functionality