adds fallback to css height/width if we can't get info from the image