Fixed a small index bug in FileImageSource