private void addImageAnnotation(IDocument document, ImageData imageData) {
if(imageAnnotation != null) {
removeImageAnnotation();
}
final Image image = new Image(sashForm.getDisplay(), imageData);
imageAnnotation = new ImageAnnotation(image);
final Position p = padDocumentForImage(document, imageAnnotation.getPaddingString(viewer));
annotationPainter.addAnnotation(imageAnnotation, p);
}