disables grid in print and print preview

This solves #156 and implements #93 for image.