modify jpg file mode to 664