code refactoring
Merge pull request #4 from AliAbozaid/Save_image_to_external_storage

code refactoring