Fix API incompatibility
The last set of changes broke backwards compatibility, so this fix adds the needed changes to allow old and new code to work correctly.
I also had to rename gif.c to gif.inl to allow it compile properly for the Arduino Nano RP2040 Connect.