added fast image loading function