bugfix
fixed sql query for previous images
Merge branch 'master' of https://github.com/quiteawful/g0