Yes, this is possible. In the filters, create separate actions to create attachments of different types. In each of the actions, turn on the checkbox "Extract only attachments with names corresponding to masks" and include one mask (e.g. *.jpg) in each of the actions. Here is a page that explains attachment saving: https://www.ritlabs.com/en/products/thebat/auto-save-attachments.php