fix bugs. optimize case image