fix some bug with the images