added deleting old functionality to photo chooser