fix icon reuse code to properly handle shadow, close #1768