Minor performance improvement when exporting drawings from the gallery