Changed event wrapper for function that checks image height to improve page load behaviour