build support for 8_0_x_LEGACY_GUI_Upgrade image

Add the code used to build gui image for 8.0.x versions.