Added texture draw function