Handle texture request and error-checking better