image for cap container and remove invalid html parts