disallow zero dimensions for screenshots

getarg function was changed to use <= in one of the previous commits.