private void calcScale(){
		int n = 0, s = 0, e = 0, w = 0;
		for (ImageData iData : anim.getFrames()){
			if (n < iData.getAnchor().y) 
				n = iData.getAnchor().y;
			if (w < iData.getAnchor().x) 
				w = iData.getAnchor().x;
			if (s < iData.getHeight() - iData.getAnchor().y)
				s = iData.getHeight() - iData.getAnchor().y;
			if (e < iData.getWidth() - iData.getAnchor().x)
				e = iData.getWidth() - iData.getAnchor().x;
		}
		centerY = n;
		centerX = w;
		int newHeight = n + s;
		int newWidth = w + e;
		System.out.println("("+newHeight+","+newWidth+")"+centerX+","+centerY+" - "+scale);
		scale = (float) ((1.0*PREVIEW_HEIGHT)/newHeight);
		if ((1.0*PREVIEW_WIDTH/newWidth) < scale){
			scale = (float) ((1.0*PREVIEW_WIDTH)/newWidth);
		}
	}