[BUGFIX] Use correct maximum width/height for media preview