cximage: fix broken cr2 after wrong backport of security fix d13aee8e81b...

fixes broken image decoding of raw formats like cr2 after https://github.com/xbmc/xbmc/commit/d13aee8e81be9032ed78fd707d485fdcb4ed5bd6

@jmarshallnz should be pulled to Gotham branch