fix bug of images' positions