[rbp] Some fixes for OMXImage

Some bug fixes and speedups for the cheap jpeg parse we do before submitting to GPU.
This was sometimes taking longer than 200ms (slower than the full jpeg decode).