Use at least 1x1 pixel canvas for groups.

Fixes #3078