if (isVertical() && !isImageRotationPreservedInVerticalMode()) {
boolean vertLeft = getPosition() == SWT.LEFT;
transform.translate(vertLeft ? 0 : imageBounds.width, vertLeft ? imageBounds.height : 0);
transform.translate(imageBounds.x, imageBounds.y);
transform.rotate(vertLeft ? -90 : 90);
transform.translate(-imageBounds.x, -imageBounds.y);
}
gc.setTransform(transform);
gc.drawImage(item.getImage(), imageBounds.x, imageBounds.y);