fixed jagged edges on resize