gets the type of gif input working