update to image loading