Added listener for image loadings