added callback mechanism for better async image downloading.