Your best bet is to start by looking at MEWUI - a fork of MAME that extends the internal menu with inages etc. Don't know if there's anywhere it displays images once the game is launched, but at the very least they'll be a bunch of code that might be leveraged.