fixing location of images to be more flexible