@see https://github.com/nbadal/android-gif-encoder