add jpeg support to mplayer and mplayer2

Closes #4288