code: def from_file(cls, fpath, name=None, log_in_history=True):
          
          use_plugin('freeimage')
          ar = imread(fpath)
  
          # Create a :class:`jicimagelib.image.Image` instance.
          image = Image.from_array(ar, name)
  
          # Reset history, as image is created from file not array.
          image.history = []
          event = 'Created image from {}'.format(fpath)
          if name:
              event = '{} as {}'.format(event, name)
          if log_in_history:
              image.history.append(event)
  
          return image
docs: Return :class:`jicimagelib.image.Image` instance from a file.
          
          :param fpath: path to the image file
          :param name: name of the image
          :param log_in_history: whether or not to log the creation event
                                 in the image's history
          :returns: :class:`jicimagelib.image.Image`