Fixed image conversion in subdirectories.