Fix Builder.imgpath has not been initialized correctly