fix layout and optimize image