Fixed offsetWidth bug rendering retina when offsetwidth is 0