Added a mipmap algorithm that tries to find contrasting pixels.
Merge branch 'core'
Fixed tile packing bug.
Merge branch 'core'
Merging dolda