Thank you very much for that insightfull answer!
I tried both solutions with success, and chose to keep the C_Image_Wrapper one (looks closer to my original code and a bit cleaner to my eyes considering your PS note).
I gladly mark this topic as resolved!