Early terminate if height/width is 0

Signed-off-by: Brandyn A. White <bwhite@dappervision.com>