Added image functions to player and replaced them in mainview