Fixed image testing to use uri instead of url