fix whitespace
fix carousel controls showing up with only one image
moved logic for displaying medias of different types into the media object
write media url parsing tests