Basically you just imply this framework and make some flexible modified to a ImageView . there is a sample of his project .
The change i did is made the ImageView to not match the parent to whole screen instead just wrap the content . the hardest part should be rotation . you have to modify the width and height to wrap the dynamic content . it took me some hours to figure out but turned out it was just junior high school math .. bummer .