changed the way we get the images