Filename comparison not working due to value stored in imageList. Will have to refactor.