added the logic to retrieve image of last note
merging
Merge branch 'master' of heroku.com:loseorpay