There's a lot of cut-n-paste common code between these functions. It feels like to redraw errors in handling texture image specification, it should be straight forward to unify these functions to reduce the number of places where the same functionality is repeated.
<rdar://problem/98757512>
Erm, `reduce` not `redraw` errors in handling...