Added small robustification check on image resize fix.