Signature verification using global and grid features