Resize cleanup

* Got rid of the remaining Danbooru resize function portions and replaced them with own.