registering load event to trigger new calculation of images