Convert multi-threading image processor to a class