Added a mipmap algorithm that tries to find contrasting pixels.
Merge branch 'core'
Fixed tile packing bug.
Merge branch 'core'
Merge branch 'master' of git://sh.seatribe.se/salem-client