Caching original image size before optimization

If the source and destination folder for the tasks are same, then `origSize` is same as the optimized image size(`data.contents.length`). This shows the false message - ***already optimized*** even when optimization of images has actually taken place.