increase speed by using multi-processing, generating gif files