Added function to print intensity images to png