minor fix for once images have finished loading