Fixes image sizing and encoding bug

The keep-attribute-order feature introduced a bug that caused image size
updating to break. This change fixes that by updating the parseTag functions
in the haml, html, and slim langs.