Created GetMedia function to handle finding the correct image url/hex for given situations.