Update measures to handle null and mis-dimensioned images, and add a dry-run option.