Code style corrected. Optimized image downloading tasks