added save functionality to images/videos