If there's no resolution attribute in xml, only width gets a value, height doesn't and ValueError is raised.
insert