fixed POT-expansion workaround (didn't take scale factor into account)
added protected method that allows transformation of raw byte data before it is processed
Merge branch 'master' into develop