support int value in width and height

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>