When searching for ways to mask images in openFrameworks (iOS/OSX), I found that the most well-ranked solutions on search results actually did not work. Then I found this one, that worked:
https://forum.openframeworks.cc/t/setalphamask-example-failing/24193