Added texture and image code.