account for image load in animation