corrected method call, added resize support, added parseInt to maintain consistency

Signed-off-by: Ashwini Khare <khare.ashwini@gmail.com>