get type from source image