That is certainly one way of doing it.
Are you intending to write the software on the receiving side as well? If so, you can make it do whatever you want, but to be clear, MIDI isn't designed for transferring images, although it can be done with SysEx messages.