code: private Image loadImage(final String resourceName, final boolean skipImagesFolder) {
          Image image = null;
  
          final List<String> imagePaths = skipImagesFolder ? Collections.singletonList("") : ResourceParameters.IMAGE_FOLDER.get();
          for (int i = 0; i < imagePaths.size() && image == null; i++) {
  
              String imagePath = imagePaths.get(i);
              if (!imagePath.isEmpty()) {
                  imagePath += Resources.PATH_SEP;
              }
              final InputStream imageInputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(imagePath + resourceName);
              if (imageInputStream != null) {
                  image = new Image(imageInputStream);
              }
          }
          if (image == null) {
              LOGGER.error("Image : {} not found into base folder: {}", resourceName, ResourceParameters.IMAGE_FOLDER.get());
          }
          return image;
      }
docs: Load an image.
  
  @param resourceName the name of the image, path must be separated by '/'
  
  @param skipImagesFolder skip imagesFolder prefix addition
  
  @return the image loaded