Fix bugs. Now image can show up!