Add image load detect before running