added resize function.
working on ImageRaw