Modified Pixelfly software for electron gun experiment