removed unused code
made ImagePane simpler