Fixed frame delay plus resize bug