Use gracebat for hardcopy

This avoids the need for an x-server when we only want to create
hardcopies