other fixes

fixes #7

media is now randomly shuffled once it has played all the way through.
used std:: function

fixes #6

when switching media the start position is now randomized

looping bug is now fixed. if loop mode is set to none, it will now just
play through the gifs