rest: strip whitespaces from image names