bugfix: rgb bytetype image has been rendered wrongly