added transformImage
todo note