Added new functionality to hide non image elements while preloading.