public static void htmlEmitImage(org.powerloom.PrintableStringWriter stream, String imageurl, String alternatetext, int width, int height, String alignment, int border) {
    stream.print("<IMG SRC='" + imageurl + "'");
    if (alternatetext != null) {
      stream.print(" ALT='" + alternatetext + "'");
    }
    if (width != Stella.NULL_INTEGER) {
      stream.print(" WIDTH=" + width);
    }
    if (height != Stella.NULL_INTEGER) {
      stream.print(" HEIGHT=" + height);
    }
    if (alignment != null) {
      stream.print(" ALIGN='" + alignment + "'");
    }
    if (border != Stella.NULL_INTEGER) {
      stream.print(" BORDER='" + border + "'/>");
    }
    else {
      stream.print(" BORDER='0'/>");
    }
    return;
  }