added in getWidth and height to gcomp