fixed imaging bug
enhanced debug plugin