add variable to compute percent of texture reloaded.
patch crash when widget has no parent.