Move ImagesLoaded functionality into its own function & standardise function names