testing writejpeg