Fix for select tools and transparent shapes behaviour: issue #217