Allow custom image to HTML conversion