fix problems, optimize image