changed image loading method