Utility to convert animated gif into as required by android