Fix css parsing for image embedding