Fixing script to get fps
fixing hxw to change size image