code: public static Map.Entry<String, Map<String, ?>> compareImagesCommand(ComparisonMode mode,
                                                                           byte[] img1Data, byte[] img2Data,
                                                                           @Nullable BaseComparisonOptions options) {
          String[] parameters = options == null
                  ? new String[]{"mode", "firstImage", "secondImage"}
                  : new String[]{"mode", "firstImage", "secondImage", "options"};
          Object[] values = options == null
                  ? new Object[]{mode.toString(), new String(img1Data, StandardCharsets.UTF_8),
                                 new String(img2Data, StandardCharsets.UTF_8)}
                  : new Object[]{mode.toString(), new String(img1Data, StandardCharsets.UTF_8),
                                 new String(img2Data, StandardCharsets.UTF_8), options.build()};
          return new AbstractMap.SimpleEntry<>(COMPARE_IMAGES, prepareArguments(parameters, values));
      }
docs: Forms a {@link java.util.Map} of parameters for images comparison.
  
  @param mode one of possible comparison modes
  @param img1Data base64-encoded data of the first image
  @param img2Data base64-encoded data of the second image
  @param options comparison options
  @return key-value pairs