int constantBuffer = cornerDim+cornerDim/2+mortarDim*countComplete-mortarDim;
int platingDestDim = rect.height-TOP_STATUS_HEIGHT-constantBuffer;
img = loader.getImage("reightBorderMiddle");
int platingOrigDim = countComplete*img.getHeight();
double scale = platingDestDim*1.0/platingOrigDim;
BufferedImage plate = opPainter.scaleY(img, (int)Math.rint(img.getHeight()*scale));
startX = rect.x+rect.width-img.getWidth();
int startY = rect.y+TOP_STATUS_HEIGHT;
// draw top right corner
img = loader.getImage("rightTopBorderCorner");
img = img.getSubimage(0, img.getHeight()/2, img.getWidth(), img.getHeight()/2);