Made video resize compatible with newer core versions.