This is a good implementation, I like develop in C so much, and this is a first idea to insert a Image's Handler in my apps.

Very Thanks :)