Start counting after image is loaded