Also preserver transparency for gif images
Fix unittests