fixed image downloading issue