fixing the break of images