Add class MediaInfo to MediaPlayer, refactor code to take mediaInfo object as a parameter for displayImage and playMedia methods.