I've found the problem. It appears that my width and height are exchanged when I'm decoding the raw image... Strangely odd since other smaller images shows no problem at all...