Refactored texture drawing + some minor code changes. not happy with this at all