[#441] use the `width` and `height` properties if `spritewidth` and `spriteheight` are not defined