Optimization code. add removePhotoBrowser delegate