protected Image toModel(ImageService.Image image) {
return toModel(((ImageImpl) image).getData());
}
protected Image toModel(ImageData data) {
Image image = new Image();
image.isPublic = data.getIsPublic();
if (data.getIsPublic()) {
image.visibility = "public";
} else {