Fix initialization of Cairo::ImageSurface (in Library and Preferences)