Function to echo a posts image urls