made image loading faster and more reliable