implemented some image loading