PreProcessImage class using one static function