NXP-10980: convert the width and height as Int if possible