For location /i/ { alias /data/images/; } a request /i/a.png maps to /data/images/a.png, replacing the matched /i/. Appending the whole URI is root's behavior, not alias's; both read from disk; and alias is not restricted to regex locations.
Official docs