toolbar icon, fix small bug when rectangle is 0