I use Eagle regularly. They have a robust plugin system that allows you to launch plugins and apply them on photos. They built a plugin that will enlarge a photo, but your system is so much better.
Here is the link to Eagle:
Here is the link to their API:
Here is the link to their plugin docs: