Fixed the image folder check