added on load instead of ready to wait for images