Add av_image_check_sar() and use it to validate SAR