cgi/g: handle the size_(x|y) url parameters