Implements missing getMedia method of attachment model.