deprecate some method. Fix get media size