<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resize(self, size):
 """Return a new Image instance with the given size."""

        return Image(self.pil_image.resize(size, PIL.Image.ANTIALIAS))