playing around with fast image write/read
fixed itn/byte conversion bug
added more possibilities for conversion
added testing methods
improved code