added delete function for picture