added feature to edit pictures