def center(self, max_width):
old_width, height = self._im.size<EOL>new_size = (max_width, height)<EOL>new_im = Image.new("<STR_LIT:1>", new_size)<EOL>paste_x = int((max_width - old_width) / <NUM_LIT:2>)<EOL>new_im.paste(self._im, (paste_x, <NUM_LIT:0>))<EOL>self._im = new_im<EOL>
In-place image centering

        :param: Maximum width in order to deduce x offset for centering
        :return: None