changed code so that PictureSourceType & DestinationType object references are retrieved in deviceready event-handler