} else {  d = GalleryRemote.getInstance().properties.getDimensionProperty("resizeToDefault");  if ( d.equals( new Dimension( 0, 0 ) ) ) { d = null; }
    public File getUploadSource() {		if ( GalleryRemote.getInstance().properties.getBooleanProperty("resizeBeforeUpload") ) {			Dimension d = GalleryRemote.getInstance().properties.getDimensionProperty("resizeTo");						if ( d == null || d.equals( new Dimension( 0, 0 ) ) ) {				d = null;				album.fetchAlbumProperties(null);				int l = album.getServerAutoResize();								if ( l != 0 ) {					d = new Dimension( l, l );				}			}						if ( d != null ) {				return ImageUtils.resize( getSource().getPath(), d );			} else {				return getSource();			}		} else {			return getSource();		}	}