added rotated image rendering