setInherentWidth now polls to make sure the image in question is ready before attempting to set a width.