using different hash distance for video and image