Fix for using gbitmap_destroy() for image freeing.