fix frame size option, patch by Limin Wang, lance lmwang gmail com