Set width and height by getting query arguments from request URL.