Update Media.php

Before deletion, remove media file from source and also delete from relation table