fix bug with image names