Deduplicate RGB compression code

In read-rgb-strip, merge codes dealing with different compressions
initial support for reading 16-bit compressed and uncompressed images

 * only works for big-endian images