fixing erroneous region images