maybe picture instanceof Blob instead?  That handles the File object case as well as the Blob case.