Allow margins smaller than 10 pixels.
Increase maximum size of foreground.