Removing code writing out temp image for visual inspection