Set the correct height/width if the data is available when generating opengraph metadata