Added more useful prints, moved compareImage to be called by draw().