Use proper error handling. Only save preview image if render is successful. Reduce repetitive code.
Use proper error handling. Only save preview image if render is successful. Reduce repetitive code.

recombinators/little-worker,recombinators/little-worker,recombinators/little-worker