Fixed the sourceType in getPicture.