Update graphic restriction

This should fix bug #1519