private void recalcDimensions()
  {
    //Store the first image sizes for sure
    width = getImageWidth(0);
    height = getImageHeight(0);  
    //Loop through the rest of the images
    for(int i = 1; i < images.size(); i++)
    {
      //If we've found a wider image reset the width
      if (getImageWidth(i) > width)
        width = getImageWidth(i);
      //If we've found a taller image, reset the height
      if (getImageHeight(i) > height)
        height = getImageHeight(i);
    }
  }