add switch storeimagetype

storeimagetype is representative that photo will to store, 1 is store
in document, 2 is store in photoAssertLibrary.