Added feature to edit pictures