code: private void moveToFirst(List<ImageFormat> v, int format){
  		for(ImageFormat i : v)
  			if(i.getIndex()==format){
  				v.remove(i);
  				v.add(0, i);
  				break;
  			}
  	}
docs: This method moves the given image format <code>format</code>
  in the first position of the vector.
  @param v the vector if image format
  @param format the index of the format to be moved in first position