Changed the allocation and releasing of the picker such that it works with and without ARC.