Also checking attached media in order to produce main media url.