polish input images