this version of my chatapp adds gif and other image rendering