added image and youtube handling in posts