added subfolder image processing