Revert "Fix static image processing with gdk-pixbuf2"

This reverts commit 5e5f2aed34dc1356c151513d5e31d9f14ce64c8e.
Fix an error when glib version < 2.36