greatly improve image downloading (in cache dir + better image pattern recognition + code clean)