Added texture factory using GLUS. Fixed bug in JSON.