Track media file changes correctly