Added image debugging.