Create Sample using imagine library : 
https://github.com/iwanwan/Imagine