fix issue with images from hidden folders being included