public void extend(Registries registries) {
FormDoodads.register(registries.getElementHandlerRegistry());
// We'll need an attachment manager
FakeAttachmentsManager attachmentManager = new FakeAttachmentsManager();
// Create a few attachments
attachmentManager.createFakeAttachment("pics/Snow.jpg", 120, 80);
attachmentManager.createFakeAttachment("pics/yosemite.jpg", 120, 80);
attachmentManager.createFakeAttachment("pics/hills.jpg", 120, 74);
attachmentManager.createFakeAttachment("pics/wave.gif", 120, 74);
ImageThumbnail.register(registries.getElementHandlerRegistry(), attachmentManager,
new ThumbnailActionHandler() {
@Override
public boolean onClick(ImageThumbnailWrapper thumbnail) {