Automatic fundus image field detection and quality assessment