Correction Thomas constructor Media, added boolean isFile