Code cleaning for media module; Changed max_size to more meaningful unit of KB