Only add media if url is provided.