fixed the bug of button positioning and the bug of image toolbar positioning