public void setCode(final String htmlImageCode) {
        if (Objects.equals(htmlImageCode, this.htmlImageCode)) {
            return;
        }
        this.clear();
        this.htmlImageCode = htmlImageCode == null ? HtmlImage.SHARED : htmlImageCode;
    }
set the code BEFORE starting to use the imageloader
main/src/main/java/cgeo/geocaching/utils/ImageLoader.java