fix typo that causes dotImage not centered correctly when image size is different from dotSize