Ensure image isn't decoded twice if not necessary when SDWebImageRefreshCached flag is used #326