Updated caps, texture format detections, more extensions, refactorying