For this kind of issues you have to use two deployers. As you know, there could be the various options for this, but seems the simplest is just running two upload sites with different configurations.
or
You need to create 2 different storage for different and provide storage id in your publication configuration for different type of binaries.
<Publication Id="111" cached="true" defaultStorageId="defaultdb" >
<Item typeMapping="Binary" storageId="storageLocation1" cached="true"/>
<Item typeMapping="Binary" storageId="storageLocation2" cached="true"/>
</Publication>
or
The other way would be your's Tbb code, through which you can achieve any kind of requirement but for this way you need to write code.