Added support for image and video uploads