docs: def parse_image_json(text):
      """
      parses response output of AWS describe commands and returns the first (and only) item in array
      :param text: describe output
      :return: image json
      """
      image_details = json.loads(text)
      if image_details.get('Images') is not None:
          try:
              image_details = image_details.get('Images')[0]
          except IndexError:
              image_details = None
      return image_details