added html image to the html dom and refactored the html dome for better utilisation of the base classes