resize images after download
Merge remote-tracking branch 'origin/optimizations' into optimizations