Fixed resizeToFill slowdown issue