Added texture to be rendered. Various bug fixes to get this running