Shape image threshold parsing

a couple of failures here with complex calc() args. I'll log the bug shortly.