btw: is there an API to saveimagefile ?
or i have to know the png format for example
and save it bit by bit ?