// compute the scale in x direction
platingDestDim = rect.width-LEFT_PANEL_WIDTH-constantBuffer;
img = loader.getImage("bottomBorderMiddle");
platingOrigDim = countComplete*img.getWidth();
scale = platingDestDim*1.0/platingOrigDim;
plate = opPainter.scaleX(img, (int)Math.rint(img.getWidth()*scale));
startX = rect.x+LEFT_PANEL_WIDTH;
// startY must not be adjusted is correct from above
// draw top right corner
img = loader.getImage("leftBottomBorderCorner");
img = img.getSubimage(img.getWidth()/2, 0, img.getWidth()/2, img.getHeight());