/*EP_Polarity pol=newimg->getPolarity(); if (pol==EPP_Reverse) { newimg->setPolarity(EPP_Normal); }*/