Add styles for image thumbnails in print mode (#1489134)