added the resize processing function and int-array argument parsing