ignoring ds_store
Fixing issue with index when images were removed from the array