added some debug lines to determine how photoimage and put work