Added filter to handle images in HTML