Removed the bug the debug viewer

Originally the program crashed when a window was moved when the program
was paused. This was partially caused by bad pointing..
Fixed further image format issues