Add character encoding and alt attr for img