fixed support for images in subfolders