width and height must be integers