code: private String getAdaptiveUrl(FileLink fileLink, int dimen) {
          ResizeTask resizeTask = new ResizeTask.Builder()
                  .fit("crop")
                  .align("center")
                  .width(dimen)
                  .height(dimen)
                  .build();
  
          return fileLink.imageTransform().addTask(resizeTask).url();
      }
docs: Creates a URL to an image sized appropriately for the form ImageView