Fixed the memory used by the Touch plugin

Fixed the memory used by the plugin. Changes are in ChoosePictureCommon of Touch