Fixed a minor bug in the indexing autoupdate for image resources