<%include file="header.html" />

You can now run the algorithm on the whole image:

<%include file="footer.html" />