changed getImages to take in start and end position of array, made it extend thread so we can update user on status of image fetching in the UI