Improved image loading