Fix bugs for save image

1. create bitmap after the user select the storage path
2. use a private variable to storeage the d2dmanager and keep it only
init once