dithering: prevent possible crash in case of tiny image sizes