Added code to generate note image files.