Switched to dictionary for media file extensions