removed blank lines inside the BuildImage method