Faster operation

Shows images only in the very end. Image resizing is done in parallel
with the main program.