moved things from TSteelworks, probably fixed drawTexturedRect