supporting passing integers for width and height in the config dictionary