trying to add the save image feature. not done yet