fixed "warning: ‘g_type_init’ is deprecated"
added shrink option
implemented shrink option