code: def image_create(comptparms, clrspc):
      
      OPENJP2.opj_image_create.argtypes = [ctypes.c_uint32,
                                           ctypes.POINTER(ImageComptParmType),
                                           COLOR_SPACE_TYPE]
      OPENJP2.opj_image_create.restype = ctypes.POINTER(ImageType)
  
      image = OPENJP2.opj_image_create(len(comptparms),
                                       comptparms,
                                       clrspc)
      return image
docs: Creates a new image structure.
  
      Wraps the openjp2 library function opj_image_create.
  
      Parameters
      ----------
      cmptparms : comptparms_t
          The component parameters.
      clrspc : int
          Specifies the color space.
  
      Returns
      -------
      image : ImageType
          Reference to ImageType instance.