Convert medias list to a tuple

Refactoring: Instead of accessing r, g, b values directly
with index just convert the list to a tuple.