refactored image code (take photo/browse gallery) into new activity class to be inherited from