Better card detection when uploading scans