Changed from decapricated ImageMenuItem to MenuItem.
Added missing connection to size-allocate signal for dockx.