Attempt to go back to the earliest finding a matching framebuffer logic

@hydrard , feel free to close it if you think this one is not good enough .

Looks like at the very beginning , we're trying to change the matching framebuffer logic to fix some games .I tried to go back the the very original logic to see if it still works right now .This seems to fix the last framebuffer sizing issues in few games (Wildarm XF, Midnight club 3 etc) and also good for Kingdom heart .