Mastodon now has official iOS app (you can download it in test flight application by subscribe as their Patreon). The last addition in app was ability to use shortcuts. However it’s only support posting text not media files (0.94 beta).
As workaround you can upload images to external service and then post url to mastodon. This example showing you how to use Imgur.
Thank you for reading.