Just increase the size of the image created using the following for line 3:
I believe that should fix it.
1 | GreenfootImage image = new GreenfootImage(radius+ 1 , radius+ 1 ); |