width and height are integers