speedup hash calculation by using more faster image resizing filter