adding PNG/JPEG output