code: public static @Nullable EncodedImage cloneOrNull(EncodedImage encodedImage) {
      return encodedImage != null ? encodedImage.cloneOrNull() : null;
    }
docs: Returns the cloned encoded image if the parameter received is not null, null otherwise.
  
  @param encodedImage the EncodedImage to clone