nuv: validate image size