It would only be legal for you to play the game via emulation if you created the ROM you used to play from your own, legally obtained original cart.
Technically it would be 100% illegal for you to use the captured screen shots for your own program, but depending upon the program and how it's used, Nintendo would typically look the other direction.