code: public boolean handleImageUpload(CmsObject cms, List<String> uploadedFiles) {
  
          boolean result = false;
          if (uploadedFiles.size() == 1) {
              String tempFile = CmsStringUtil.joinPaths(USER_IMAGE_FOLDER, TEMP_FOLDER, uploadedFiles.get(0));
              result = handleImageUpload(cms, cms.getRequestContext().getCurrentUser(), tempFile);
          }
          return result;
      }
docs: Handles a user image upload.
  The uploaded file will be scaled and save as a new file beneath /system/userimages/, the original file will be deleted.<p>
  
  @param cms the cms context
  @param uploadedFiles the uploaded file paths
  
  @return <code>true</code> in case the image was set successfully