fix img&video size to relation