Removed some useless debugging. Added stdout message after saving image files.