Added texture handling. Almost have multi-block support.