Allow for image helper to use background image instead of image tag

this assertion is somewhat strange, why should width be a string? and if it is, because of implicit type coercion, this check is kind of useless, since the string could be "foobar" - which is not a valid width - and the assert would still pass. I would assert it as a number.