Support for local images and data-width attribute