initial error printing
initial error printing
improved jpeg