Updated ImageSample, removed dead code and added debug info at end
Added more debug info to ImageServer