fix jpype shutdown jvm bug and photo empty bug