cleaned up texture rendering functions