Add support for drawTexturedRect.