add zeroXpercent function
restore images