[TASK] Remove hack to retrieve file name and path from thumbnail resource
[TASK] Remove hack to retrieve file name and path from thumbnail resource

Makes it compatible with CLI
mocdk/MOC.ImageOptimizer