Fix error when asset width is nil