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. This shows the false message 'already optimized' even when the optimization of images takes place.