improved stroke db select histogram: added ability to use coordinate envelope