function rimage(image,size) {
  if (image.width > image.height) image.width = size ;
  else image.height = size ;
}
