Wait till image loads for resize.