STATE_engine_unload_unused_bitmaps
Calling this function will free all the bitmaps that are not used at this moment. Not used means that there is no polygon or animation that uses them. Returns the number of bitmaps that were unloaded