Fixed bug where we would have undefined image urls in our endpoint