Added a sourceType attribute to check if the user took picture with camera or from camera roll