Added thumbnail and template debug to local handler