A novel image hash algorithm resistant to print–scan