Fixed failing tests and IM deprecated warnings

resize has changed the name of Lanczos2lut to Lanczos2
I looked up the IM documentation to fix the deprecation warnings.

libgif tests are failing for libgif 4.1.6 from brew