Reliability Versus Latency in IIoT Visual Applications: A Scalable Task Offloading Framework