Memory leaks in photo picker