<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def image(array, domain=None, width=None, format='png', **kwargs):
 """Display an image. Args: array: NumPy array representing the image fmt: Image format e.g. png, jpeg domain: Domain of pixel values, inferred from min & max values if None w: width of output image, scaled using nearest neighbor interpolation. size unchanged if None """


  image_data = serialize_array(array, fmt=format, domain=domain)
  image = IPython.display.Image(data=image_data, format=format, width=width)
  IPython.display.display(image)