Reorganize texture management. Cleanup code
Reorganize texture management. Cleanup code

DanielJoyce/microtome,Microtome/microtome,DanielJoyce/microtome,Microtome/microtome,DanielJoyce/microtome,DanielJoyce/microtome,Microtome/microtome