optimize large focuses and fix resize rendering