heightmap ouput in png

i fixed the blendmap when too much rock would appear... i will take note
this value as a paremeter
right now i just made a function that ouput heightmaps in png.... but
its all stupidly wonky